﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ShowAttachDemo.aspx.vb" Inherits="ShowAttachDemo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1
        {
            width: 16px;
            height: 16px;
        }
    </style>
    <script src="script/packed.js"></script>
    <link href="script/style.css" rel="stylesheet" />
    <script src="script/tinybox.js"></script>
    <script>
        function openlink(url) {
            var w = 400;
            var h = 400;
            var left = Number((screen.width/2)-(w/2));
            var tops = Number((screen.height/2)-(h/2));

            return window.open(url, '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + tops + ', left=' + left);

        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
    <div>
    
        <a href="#" onclick="TINY.box.show({iframe:'neatupload.aspx?BDID=8',boxid:'frameless',width:540,height:450,fixed:false,maskid:'lightmask',maskopacity:40,closejs:function(){closeJS()}})" style="text-decoration:none;"> <img class="auto-style1" src="attachment.png" /></a>&nbsp;
          <a href="#" onclick="TINY.box.show({iframe:'AttachmentListPopup.aspx',boxid:'frameless',width:250,height:250,fixed:false,maskid:'lightmask',maskopacity:40,closejs:function(){closeJS2()}})" style="text-decoration:none;">  - </a> </div>
    <script type="text/javascript">
        function openJS() { alert('loaded') }
        function closeJS() { alert('closed') }
        function closeJS2() { doupdate() }
</script>
        <script type="text/javascript">
            var IsSpecific=false;
            var updatepanelid;
            function doupdate()
            {
                IsSpecific=true;
                CurrectUpdatePanelId=0;
                updatepanels_id=['<%=UpdatePanel1.UniqueID%>'];
doNext();
}

function doNext()
{
    Sys.WebForms.PageRequestManager.getInstance()._doPostBack(updatepanels_id[CurrectUpdatePanelId], updatepanels_id[CurrectUpdatePanelId]);
    CurrectUpdatePanelId++;

    if(CurrectUpdatePanelId>=updatepanels_id.length)
        IsSpecific=false;
}

</script>
 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<%=DateTime.Now %>
</ContentTemplate>
</asp:UpdatePanel>
    </form>
</body>
</html>
